Notice: Undefined index: column_name in /home/lauragamse/hifi/lib/Column.php on line 22

Notice: Undefined index: data_type in /home/lauragamse/hifi/lib/Column.php on line 23

Notice: Undefined index: column_name in /home/lauragamse/hifi/lib/Table.php on line 85

Notice: Undefined index: column_name in /home/lauragamse/hifi/lib/Column.php on line 22

Notice: Undefined index: data_type in /home/lauragamse/hifi/lib/Column.php on line 23

Notice: Undefined index: column_name in /home/lauragamse/hifi/lib/Table.php on line 85

Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/lauragamse/hifi/lib/Scalar.php on line 118

Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/lauragamse/hifi/lib/Scalar.php on line 118

Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/lauragamse/hifi/lib/Scalar.php on line 118

Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/lauragamse/hifi/lib/Scalar.php on line 122

Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/lauragamse/hifi/lib/Scalar.php on line 122

Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/lauragamse/hifi/lib/Scalar.php on line 124

Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/lauragamse/hifi/lib/Scalar.php on line 138

Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/lauragamse/hifi/lib/Scalar.php on line 143

Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/lauragamse/hifi/lib/Scalar.php on line 146

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/lauragamse/hifi/lib/DB.php on line 339

Warning: Cannot modify header information - headers already sent by (output started at /home/lauragamse/hifi/lib/Column.php:22) in /home/lauragamse/hifi/lib/LoaderPage.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /home/lauragamse/hifi/lib/Column.php:22) in /home/lauragamse/hifi/lib/LoaderPage.php on line 46

Warning: Cannot modify header information - headers already sent by (output started at /home/lauragamse/hifi/lib/Column.php:22) in /home/lauragamse/hifi/lib/LoaderPage.php on line 47

Warning: Cannot modify header information - headers already sent by (output started at /home/lauragamse/hifi/lib/Column.php:22) in /home/lauragamse/hifi/lib/LoaderPage.php on line 71

Warning: Cannot modify header information - headers already sent by (output started at /home/lauragamse/hifi/lib/Column.php:22) in /home/lauragamse/hifi/lib/LoaderPage.php on line 76
/* Content bundled and compressed by the Hi-Fi resource loader, please contact bros@brokendisk.com for full commented source code. */ $(window).load(function(){$('#sessions').animate({opacity:1});});var session={background:false,overlay:false,nav:false,startButton:false,stopButton:false,instructionOne:false,instructionTwo:false,addForm:false,newPin:false,topInput:false,leftInput:false,init:function(){session.background=$('#background');session.overlay=$('#main') session.nav=$('nav');session.startButton=$('#start_adding');session.stopButton=$('#stop_adding');session.instructionOne=session.startButton.parent('.instructions');session.instructionTwo=session.stopButton.parent('.instructions');session.addForm=$('#add_form');session.newPin=$('#new_pin');session.topInput=$('#top');session.leftInput=$('#left');$('#sessions').find('a').click(session.view);session.startButton.click(function(e){e.preventDefault() session.nav.animate({top:'-'+session.instructionOne.outerHeight()+'px'},400);session.instructionOne.animate({opacity:0},400);session.instructionTwo.animate({opacity:1},400);session.adding=true;session.overlay.click(session.add);});session.stopButton.click(function(e){e.preventDefault() session.nav.animate({top:'0px'},400);session.instructionOne.animate({opacity:1},400);session.instructionTwo.animate({opacity:0},400);session.adding=false;session.overlay.unbind('click');session.addForm.fadeOut();session.newPin.fadeOut();});$('#submit').click(function(e){e.preventDefault();var valid=true;var locationInput=$('#location');var locationError=locationInput.closest('.row').find('span.error');if(locationInput.val().length==0||locationInput.val()==locationInput.attr('default_text')){locationError.css({visibility:'visible'});valid=false;} else{locationError.removeAttr('style');} var embedCodeInput=$('#embed_code');var embedError=embedCodeInput.closest('.row').find('span.error');if(embedCodeInput.val().length==0||embedCodeInput.val()==embedCodeInput.attr('default_text')){embedError.css({visibility:'visible'}) valid=false;} else{embedError.removeAttr('style');} if(valid){session.send();}});hifi.enableDefaultText();},adding:false,add:function(e){e.preventDefault();if(e.target.id=='main'){var clickIsOnLeft=e.pageX<=session.background.width()/2;var clickIsOnTop=e.pageY<=session.background.height()/2;var formLeft=clickIsOnLeft?e.pageX+2:e.pageX-session.addForm.outerWidth()-4;var formTop=clickIsOnTop?e.pageY+2:e.pageY-session.addForm.outerHeight()-4;var pinLeft=e.pageX-3;var pinTop=e.pageY-3;session.newPin.css({top:pinTop,left:pinLeft}).show();session.addForm.fadeOut(100).stop(true,true).removeClass('sent').css({top:formTop,left:formLeft}).fadeIn(200);posX=pinLeft/session.background.width()*100.0;posY=pinTop/session.background.height()*100.0;session.topInput.val(posY);session.leftInput.val(posX);}},send:function(e){$.ajax({type:'POST',url:hifi.siteUrl+'map/addSession/',data:session.addForm.serialize(),success:function(response){$('#sent').html(response).css({top:session.addForm.css('top'),left:session.addForm.css('left'),width:session.addForm.width()}).fadeIn();setTimeout("$('#sent').fadeOut();",3000);session.addForm.fadeOut() $(':input',session.addForm).not(':button, :submit, :reset').val('');},error:function(response){}});},view:function(e){e.preventDefault() $.ajax({type:'GET',url:hifi.siteUrl+'map/getSession/'+$(this).attr('id'),success:function(response){dialog.open('session',{title:'invisible session',body:response});},error:function(response){}});}} session.init();(function(){var initializing=false,fnTest=/xyz/.test(function(){xyz;})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(prop){var _super=this.prototype;initializing=true;var prototype=new this();initializing=false;for(var name in prop){prototype[name]=typeof prop[name]=="function"&&typeof _super[name]=="function"&&fnTest.test(prop[name])?(function(name,fn){return function(){var tmp=this._super;this._super=_super[name];var ret=fn.apply(this,arguments);this._super=tmp;return ret;};})(name,prop[name]):prop[name];} function Class(){if(!initializing&&this.init) this.init.apply(this,arguments);} Class.prototype=prototype;Class.prototype.constructor=Class;Class.extend=arguments.callee;return Class;};})();$.plugin=function(name,object){$.fn[name]=function(options){var args=Array.prototype.slice.call(arguments,1);return this.each(function(){var instance=$.data(this,name);if(instance){instance.init(options);} else{instance=$.data(this,name,new object(options,this));}});}};var dialog={counter:0,create:function(boxId,params) {if(typeof(boxId)=='undefined'||boxId==null){boxId='dialog_'+dialog.counter++;} while($('#'+boxId+'.dialog').length>0){hifi.log('existent Id passed to dialog constructor: '+boxId);$('#'+boxId+'.dialog').remove();} var template=$('#dialog_template');if(template.length<=0){hifi.log('Dialog template not found! try this: include FRAMEWORK_PATH . \'templates/dialog.php\';');return false;} $('body').append(template.clone().attr('id',boxId));if(typeof(params)!='undefined'&¶ms!=null) {if(typeof(params.title)!='undefined'){$('#'+boxId+' .content > .title .title-text').text(params.title);} if(typeof(params.body)!='undefined'){$('#'+boxId+' .content > .body').html(params.body);} if(typeof(params.classes)!='undefined'){$('#'+boxId).addClass(params.classes);}} return dialog.open(boxId);},open:function(boxId,params) {if(typeof(boxId)=='undefined'||boxId==null){hifi.log('null id passed to dialog.open, using last lambda dialog');boxId='dialog_'+dialog.counter;} box=$('#'+boxId+'.dialog');if(box.length==0){hifi.log('invalid id passed to dialog.open: '+boxId+', nothing to open, attempting to create');return dialog.create(boxId,params);} $('#'+boxId+' .close').live('click',function(e){e.preventDefault();dialog.close(boxId);});if(typeof(params)!='undefined'&¶ms!=null) {if(typeof(params.append)!='undefined'){$('#'+boxId+' .content > .body').append(params.append);} if(typeof(params.prepend)!='undefined'){$('#'+boxId+' .content > .body').prepend(params.prepend);}} box.addClass('way-the-hell-and-gone').show(1,function(){var centerMiddle={top:offsetTop=$(this).height()<$(window).height()?$(window).scrollTop()+$(window).height()/2-$(this).height()/2:$(window).scrollTop(),left:$(this).width()<$(window).width()?$(window).scrollLeft()+$(window).width()/2-$(this).width()/2:$(window).scrollLeft()} $(this).hide().css(centerMiddle).removeClass('way-the-hell-and-gone').fadeIn();});return box;},close:function(boxId) {if(typeof(boxId)=='undefined'||boxId==null){hifi.log('null id passed to dialog.close, using last lambda dialog');boxId='dialog_'+dialog.counter;} box=$('#'+boxId+'.dialog');if(box.length==0){hifi.log('invalid id passed to dialog.close: '+boxId+', nothing to open');return false;} box.fadeOut('fast');if(!box.hasClass('persistent')){dialog.remove(boxId);}},remove:function(boxId) {if(typeof(boxId)=='undefined'||boxId==null){hifi.log('null id passed to dialog.remove, using last lambda dialog');boxId='dialog_'+dialog.counter;} box=$('#'+boxId+'.dialog');if(box.length==0){hifi.log('invalid id passed to dialog.remove: '+boxId+', nothing to remove');return false;} box.remove();},sanitizeId:function(boxId) {}}